import { reactive, ref } from "vue";

export default function InitHook() {
  const searchForm = reactive<Partial<WarehouseEntryChannel.SearchForm>>({
    id: [],
    deliveryType: undefined,
    multipleWeightingMethod: undefined,
    status: undefined,
    pageNum: 1,
    pageSize: 100,
    total: 0
  });
  const tableData = ref<Array<WarehouseEntryChannel.ListRows>>([]);
  const drawerOpts = reactive<Base.DrawerOpts>({
    title: "",
    width: "1200px",
    component: "",
    passData: {},
    visible: false,
    type: 1
  });
  return {
    searchForm,
    tableData,
    drawerOpts
  };
}
